package tuan.web;

import tuan.core.extract.Demo;
import tuan.core.extract.Product;
import xnet.core.http.Request;
import xnet.core.http.Response;
import xnet.core.http.Servlet;

public class TuanServlet implements Servlet {

	public void doRequest(Request request, Response response) throws Exception {
		Product p = new Product();
		p.url = request.params.get("url");
		Demo.getProductDetail(p);
		response.write("<h1>团购信息识别如下</h1>");
		response.write("<pre>" + p.toString() + "</pre>");
	}

}
